//加油站列表model

class JYZModelEntity {
  List<JYZModelData> data;
  int code;
  String msg;

  JYZModelEntity({this.data, this.code, this.msg});

  JYZModelEntity.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<JYZModelData>();
      (json['data']['list'] as List).forEach((v) {
        data.add(new JYZModelData.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

// {
//   "id":"7669",
// "gasid":"CL000007957",
// "gasname":"常来加油站",
// "gastype":"1",
// "provincecode":"370000",
// "provincename":"山东省",
// "citycode":"370700",
// "cityname":"潍坊市",
// "countycode":"370725",
// "countyname":"昌乐县",
// "gaslogosmall":"https:\/\/img.czb365.com\/1572416928005.jpg?x-oss-process=image\/resize,m_lfit,h_200,w_200\/format,png",
// "gaslogobig":"https:\/\/img.czb365.com\/1572416927769.jpg?x-oss-process=image\/resize,m_lfit,h_420,w_630\/format,png",
// "gasaddress":"昌乐县营丘镇工业园昌马路东侧",
// "gasaddresslongitude":"119.003639",
// "gasaddresslatitude":"36.583721",
// "oilno":"92",
// "oilname":"92#",
// "priceyfq":"3.98",
// "pricegun":"4.78",
// "priceofficial":"6.78",
// "oiltype":"1"}
class JYZModelData {
  String id;
  String gasid;
  String gasname;
  String gastype;
  String provincecode;
  String provincename;
  String citycode;
  String cityname;
  String countycode;
  String countyname;
  String gaslogosmall;
  String gaslogobig;
  String gasaddress; //昌乐县营丘镇工业园昌马路东侧
  String gasaddresslongitude;
  String gasaddresslatitude;
  String oilno;
  String oilname;
  String priceyfq; //3.98",
  String pricegun; //4.78",
  String priceofficial; //6.78",
  String oiltype; //1"
  String distance;

  JYZModelData(
      {this.id,
      this.gasid,
      this.gasname,
      this.gastype,
      this.provincecode,
      this.provincename,
      this.citycode,
      this.cityname,
      this.countycode,
      this.countyname,
      this.gaslogosmall,
      this.gaslogobig,
      this.gasaddress, //昌乐县营丘镇工业园昌马路东侧
      this.gasaddresslongitude,
      this.gasaddresslatitude,
      this.oilno,
      this.oilname,
      this.priceyfq, //3.98",
      this.pricegun, //4.78",
      this.priceofficial, //6.78",
      this.oiltype ,//1"
      this.distance
      });
  JYZModelData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    gasid = json['gasid'];
    gasname = json['gasname'];
    gastype = json['gastype'];
    provincecode = json['provincecode'];
    provincename = json['provincename'];
    citycode = json['citycode'];
    cityname = json['cityname'];
    countycode = json['countycode'];
    countyname = json['countyname'];
    gaslogosmall = json['gaslogosmall'];
    gaslogobig = json['gaslogobig'];
    gasaddress = json['gasaddress'];
    gasaddresslongitude = json['gasaddresslongitude'];
    gasaddresslatitude = json['gasaddresslatitude'];
    oilno = json['oilno'];
    oilname = json['oilname'];
    priceyfq = json['priceyfq'];
    pricegun = json['pricegun'];
    priceofficial = json['priceofficial'];
    oiltype = json['oiltype'];
    distance= json['distance'];
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] =this.id;
     data['gasid'] = this.gasid;
     data['gasname'] = this.gasname;
     data['gastype'] = this.gastype;
     data['provincecode'] = this.provincecode;
     data['provincename'] = this.provincename;
     data['citycode'] = this.citycode;
    data['cityname'] =  this.cityname;
    data['countycode'] =  this.countycode;
     data['countyname'] = this.countyname;
     data['gaslogosmall'] = this.gaslogosmall;
    data['gaslogobig'] =  this.gaslogobig;
     data['gasaddress'] = this.gasaddress; //昌乐县营丘镇工业园昌马路东侧
     data['gasaddresslongitude'] = this.gasaddresslongitude;
    data['gasaddresslatitude'] =  this.gasaddresslatitude;
    data['oilno'] =  this.oilno;
    data['oilname'] =  this.oilname;
    data['priceyfq'] =  this.priceyfq; //3.98",
    data['pricegun'] =  this.pricegun; //4.78",
    data['priceofficial'] =  this.priceofficial; //6.78",
    data['oiltype'] =  this.oiltype ;
    data['distance'] = this.distance ;
    return data;
  }
}
